/*******************************************************************************
 * Main.cpp
 * Author: Andrew Shore
 * Date Last Modified: 26 March 2010
 *
 * Main function for LineChecker program. This program reads file names from
 * an input file and then opens an input stream for each file name and 
 * then checks it for line wrap by calling the checkLineWrap() function. 
 ******************************************************************************/

#include "Main.h"
#include "Utils.cpp"

int main(){

  ifstream fileListStream;
  fileListStream.open("fileNames");
  LineWrap lineCheck;
  string fileName;

  while( fileListStream >> fileName ){
    ifstream lineStream;
    Utils::FileOpen( lineStream , fileName ); 
  
    lineCheck.checkLineWrap( lineStream,fileName);

    Utils::FileClose(lineStream);
  }//while(fileListStream >> fileName)

  return 0;


}//int main()
